//法规库模块接口
import { httpTokenRequest } from '@/utils/http.js';
var that = this;

//获取会计法规库数据列表
export function getAccountantList(params) {
	return httpTokenRequest({
		url: '/api/Norm/new_getList',
		method: 'POST',
		params: params
	});
}
//获取 税收法规库或优惠政策 数据列表
export function getPolicyDataList(params) {
	return httpTokenRequest({
		url: '/api/Policy/getList',
		method: 'POST',
		params: params
	});
}
//搜索列表
export function getSearchList(params) {
	return httpTokenRequest({
		url: '/api/Norm/getSearch',
		method: 'POST',
		params: params
	});
}
//获取热门搜索
export function getHotSearch(params) {
	return httpTokenRequest({
		url: '/api/Norm/getHotSearch',
		method: 'POST',
		params: params
	});
}
//获取历史搜索
export function getHistorySearch(params) {
	return httpTokenRequest({
		url: '/api/Norm/getHistorySearch',
		method: 'POST',
		params: params
	});
}

//清空历史搜索
export function delHistorySearch1(params) {
	return httpTokenRequest({
		url: '/api/Norm/delHistorySearch',
		method: 'POST',
		params: params
	});
}

//获取热门搜索
export function getPolicyHotSearch(params) {
	return httpTokenRequest({
		url: '/api/Policy/getHotSearch',
		method: 'POST',
		params: params
	});
}

//获取历史搜索
export function getPolicyHistorySearch(params) {
	return httpTokenRequest({
		url: '/api/Policy/getHistorySearch',
		method: 'POST',
		params: params
	});
}

//清空历史搜索
export function delPolicyHistorySearch(params) {
	return httpTokenRequest({
		url: '/api/Policy/delHistorySearch',
		method: 'POST',
		params: params
	});
}

//获取详情
export function delHistorySearch(params) {
	return httpTokenRequest({
		url: '/api/Norm/new_getInfo',
		method: 'POST',
		params: params
	});
}

//获取详情
export function getPolicyInfo(params) {
	return httpTokenRequest({
		url: '/api/Policy/new_getInfo',
		method: 'POST',
		params: params
	});
}

//获取会计法规库分类列表
export function getSortList(params) {
	return httpTokenRequest({
		url: '/api/Norm/newgetallaccountclass',
		method: 'POST',
		params: params
	});
}


//获取优惠政策税种列表
export function getTaxList(params) {
	return httpTokenRequest({
		url: '/api/Policy/getCate',
		method: 'POST',
		params: params
	});
}